package com.cm.scan.init;

import com.cm.summer.annotion.Component;
import com.cm.summer.annotion.Value;
import jakarta.annotation.PostConstruct;

/**
 * @author cm
 * 2025/1/7
 */
@Component
public class AnnotationInitBean {
    @Value("${app.title}")
    String appTitle;

    @Value("${app.version}")
    String appVersion;

    public String appName;

    @PostConstruct
    void init() {
        this.appName = this.appTitle + " / " + this.appVersion;
    }
}
